package com.itheima.dao.impl;

import com.itheima.dao.UserDao;
import com.itheima.domain.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

/**
 * @author 17976
 */
public class UserDaoImpl implements UserDao {
   private List<String> strlist;
   private Map<String, User>userMap;
   private Properties properties;

    public void setStrlist(List<String> strlist) {
        this.strlist = strlist;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    private String username;
    private int age;

    public void setUsername(String username) {
        this.username = username;
    }


    public void setAge(int age) {
        this.age = age;
    }
    @Override
    public void save() {
//        System.out.println(username+"===="+age);
        System.out.println(strlist);
        System.out.println(userMap);
        System.out.println(properties);
        System.out.println("save running");
    }
}


//    public UserDaoImpl() {
//        System.out.println("UserDaoImpl创建了");
//    }
//    public void init(){
//        System.out.println("初始化方法");
//    }
//    public void destory(){
//        System.out.println("销毁方法");
//    }

